
package com.ict.ais.mode.service.impl;

/**
 * @author CHW  AUTO GENERAT
 * @version 1.0
 * @since 1.0
 */




import java.util.List;
import java.util.Map;

import org.framework.core.mapper.IBaseMapper;
import org.framework.core.page.Page;
import org.framework.core.service.impl.BaseServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.ict.ais.mode.facade.model.GoodsInfo;
import com.ict.ais.mode.facade.service.IGoodsInfoService;
import com.ict.ais.mode.service.mapper.GoodsInfoMapper;

/**
 *
 * 类名称：GoodsInfoServiceImpl
 * 类描述：GoodsInfoService实现类
 * @author chw
 */
@Transactional
@Service("goodsInfoServiceImpl")
public class GoodsInfoServiceImpl  extends BaseServiceImpl<GoodsInfo,String>
		implements IGoodsInfoService {
	@Autowired
	private GoodsInfoMapper goodsInfoMapper;

	public IBaseMapper<GoodsInfo,String> getBaseMapper() {
		return goodsInfoMapper;
	}

	@Override
	public Page<Map<String, Object>> findGoodsListByPage(Page<Map<String, Object>> page) {
		List list = goodsInfoMapper.findInvoiceList(page);
	    page.setResult(list);
		return page;
	}

	public List<Map<String, Object>> findListForMap(Map<String, Object> params) {
		return goodsInfoMapper.findListForMap(params);
	}
	
}
